package cola0502.project.hellospringbootcola0502.service.impl;

import cola0502.project.hellospringbootcola0502.service.AsyncService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class AsyncServiceImpl implements AsyncService {
    @Override
    public void testAsyncTask() {
        try {
            Thread.sleep(3000);
            log.info("I am AsyncTask");
        } catch (InterruptedException e) {
            if (log.isDebugEnabled()) {
                log.debug(e.toString());
            }
        }
    }
}
